package com.yunli.mall.common.util;

/**
 * @author liwei
 */
public class IdGenUtil {

    private static final SnowFlake ID_WORKER;

    static {
        ID_WORKER = new SnowFlake(1L, 2L);
    }

    /**
     * @return
     */
    public static String nextId() {
        return ID_WORKER.nextId();
    }

    /**
     * @return
     */
    public static String nextSimpleId() {
        return ID_WORKER.nextSimpleId();
    }

}
